import request from '@/utils/request'

export function getOrders(params) {
  return request({
    url: '/admin/user-orders',
    method: 'get',
    params
  })
}
export function getOrderDevice(id) {
  return request({
    url: `/admin/user-orders/${id}/device`,
    method: 'get',
  })
}
export function updateOrderDevice(id,data) {
  return request({
    url: `/admin/user-orders/${id}/device`,
    method: 'put',
    data
  })
}
export function showOrder(id) {
  return request({
    url: `/admin/user-orders/${id}`,
    method: 'get',
  })
}
export function deleteOrder(data) {
  return request({
    url: `/admin/user-orders`,
    method: 'delete',
    data
  })
}
